package com.gviiii.baiduai.config;

public abstract class AISeriviceConfigRegistry extends AbstractConfigRegistry<String, ServiceConfig> {

    @Override
    public ServiceConfig getConfig(String s) {
        return serviceConfigMap.get(s);
    }

    @Override
    public boolean addConfig(String s, ServiceConfig serviceConfig) {
        return serviceConfigMap.put(s, serviceConfig) != null;
    }

    @Override
    public boolean removeConfig(String s) {
        return serviceConfigMap.remove(s)!=null;
    }

    @Override
    public boolean containConfigKey(String s) {
        return serviceConfigMap.containsKey(s);
    }

    @Override
    public boolean containConfigValue(ServiceConfig serviceConfig) {
        return serviceConfigMap.containsValue(serviceConfig);
    }

    @Override
    public boolean isEmpty() {
        return serviceConfigMap.isEmpty();
    }

}
